//
//  LHDetailView.m
//  Knight_Tour
//
//  Created by dlios on 15-5-23.
//  Copyright (c) 2015年 TouchOne. All rights reserved.
//

#import "LHDetailView.h"

@implementation LHDetailView

- (void)dealloc
{
    [_lable1 release];
    [_lable2 release];
    [_scrollView release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
        [self createScrollView];
    }
    return self;
}

- (void)createScrollView
{
    self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    _scrollView.backgroundColor = [UIColor cyanColor];
//    _scrollView.contentSize = CGSizeMake(self.frame.size.width, 1000);
//    _scrollView.bounces = NO;
    [self addSubview:_scrollView];
    [_scrollView release];
    
    self.lable1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, 30)];
    _lable1.backgroundColor = [UIColor redColor];
    _lable1.text = @"景点介绍";
    [_scrollView addSubview:_lable1];
    [_lable1 release];
    
    self.lable2 = [[UILabel alloc] initWithFrame:CGRectMake(0, _lable1.frame.size.height, self.frame.size.width, self.frame.size.height)];
    _lable2.backgroundColor = [UIColor yellowColor];
    [_scrollView addSubview:_lable2];
    [_lable2 release];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
